<template>
    <div id="tabbar-container">
       <van-tabbar v-model="active" active-color="#D71F36" inactive-color="#515151" route>
            <van-tabbar-item replace to="/home" icon="home-o">首页</van-tabbar-item>
            <van-tabbar-item replace to="/message"  icon="search">消息</van-tabbar-item>
            <van-tabbar-item replace to="/shequ" icon="friends-o">社区</van-tabbar-item>
            <van-tabbar-item replace to="/myuser" icon="setting-o">我的</van-tabbar-item>
       </van-tabbar>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                active: 0,
            }
        },
    }
</script>

<style lang="less" scoped>
#tabbar-container {
   position: fixed;
   bottom: 0;
}
</style>